/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: andres orellana
 * License Type: Evaluation
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class LogCriteria extends AbstractORMCriteria {
	public final IntegerExpression log_id;
	public final StringExpression log_fecha;
	public final IntegerExpression log_contador;
	public final IntegerExpression log_resultado;
	
	public LogCriteria(Criteria criteria) {
		super(criteria);
		log_id = new IntegerExpression("log_id", this);
		log_fecha = new StringExpression("log_fecha", this);
		log_contador = new IntegerExpression("log_contador", this);
		log_resultado = new IntegerExpression("log_resultado", this);
	}
	
	public LogCriteria(PersistentSession session) {
		this(session.createCriteria(Log.class));
	}
	
	public LogCriteria() throws PersistentException {
		this(orm.PinPassPersistentManager.instance().getSession());
	}
	
	public ClienteCriteria createClientecliCriteria() {
		return new ClienteCriteria(createCriteria("clientecli"));
	}
	
	public Log uniqueLog() {
		return (Log) super.uniqueResult();
	}
	
	public Log[] listLog() {
		java.util.List list = super.list();
		return (Log[]) list.toArray(new Log[list.size()]);
	}
}

